package com.yupi.usapiclientsdk;

import com.yupi.usapiclientsdk.client.UsApiClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

@Configuration
@ConfigurationProperties("us.api")
@Data
@ComponentScan
public class UsApiClientConfig {
    private String accessKey;
    private String secretKey;
    @Bean
    public UsApiClient usApiClient(){
        return new UsApiClient(accessKey,secretKey);
    }
}
